//
//  SluggedString.h
//  Oos4ios
//
//  Created by Pablo Gonzalez on 2/28/11.
//  Copyright 2011 11870.com. All rights reserved.
//

#import <oos4ios/Model/SluggedString.h>

@implementation SluggedString

@synthesize slug, value;

+ (SluggedString *)stringWithString:(NSString *)string 
                           withSlug:(NSString *)slug
{
    return [[[SluggedString alloc] initWithString:string 
										 withSlug:slug] autorelease];
}

- (SluggedString *)initWithString:(NSString *)string 
                         withSlug:(NSString *)aSlug
{
    self = [super init];
    if (self) {
        [self setSlug: [aSlug retain]];
        [self setValue: [string retain]];
    }
    return self;
}

- (void) dealloc
{
	[slug release];
	[value release];
	[super dealloc];
}

@end